package ccnt.pvc.scudwaremobile.dao;

import java.io.Serializable;
import java.util.Date;

/**
 * 基本Model
 * @author dy
 *
 */
public class BaseModel implements Serializable, Cloneable {
	
	private static final long serialVersionUID = 1L;
	
	private Integer id;
	private Date gmtCreated;
	private Date gmtModified;
	private Integer isDeleted = 0;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Date getGmtCreated() {
		if(gmtCreated == null) {
			gmtCreated = new Date();
		}
		return gmtCreated;
	}
	public void setGmtCreated(Date gmtCreated) {
		this.gmtCreated = gmtCreated;
	}
	public Date getGmtModified() {
		if(gmtModified == null) {
			gmtModified = new Date();
		}
		return gmtModified;
	}
	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}
	public Integer getIsDeleted() {
		return isDeleted;
	}
	public void setIsDeleted(Integer isDeleted) {
		this.isDeleted = isDeleted;
	}
}
